USE DB_TCC
IF EXISTS(SELECT 1 FROM SYSOBJECTS WHERE NAME LIKE 'P_REDESOCIAL_CONSULTAR')
	DROP PROCEDURE P_REDESOCIAL_CONSULTAR
GO
CREATE PROCEDURE P_REDESOCIAL_CONSULTAR(
	@IDREDESOCIAL INTEGER)
AS BEGIN
	SELECT
		DESCREDESOCIAL,
		ATIVO,
		USUARIOINCLUSAO,
		DTHRINCLUSAO,
		USUARIOALTERACAO,
		DTHRALTERACAO
	FROM
		REDESOCIAL
	WHERE
		IDREDESOCIAL = @IDREDESOCIAL
END